package com.psd.demo.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.pds.demo.dao.OrganizationDao;
import com.pds.demo.dao.impl.OrganizationDaoImpl;
import com.pds.mvc.ActionForward;
import com.pds.mvc.Actions;
import com.psd.demo.common.Page;
import com.psd.demo.model.OrgAllList;
import com.psd.demo.model.Organization;

public class GetOrgListSelectOption extends Actions {

	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {

		// 告诉服务器，对表单进行中文解码

		response.setContentType("text/html;charset=utf-8");

		OrganizationDao dao = new OrganizationDaoImpl();
		try {
			
			List<Organization> orglistselectoption = dao.getOrgListSelectOption();
			this.setRequestPage("OrgListSelectOption", orglistselectoption, request);

		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ActionForward("./update.jsp", true);

	}

}
